package br.com.prezz.client.ui;

import com.google.gwt.user.client.ui.VerticalPanel;
import com.smartgwt.client.widgets.Window;

public class DialogModal extends Window
{
	VerticalPanel dialogVPanel;
	
	public DialogModal(){
		super();
	}
	
	public DialogModal(String title, boolean autoSizing, int width, int height, int offsetLeft){
		DialogModal window = this;  
        window.setAutoSize(autoSizing);  
        window.setTitle(title);  
        window.setWidth(width);  
        window.setHeight(height);  
        window.setLeft(offsetLeft);  
        window.setCanDragReposition(true);  
        window.setCanDragResize(true);  
        window.setIsModal(true);
        window.setShowMinimizeButton(false);
        window.centerInPage();
        
               
        
	}
	
	public void add(VerticalPanel dialogVPanel){
		this.addChild(dialogVPanel);
	}
	
	
	
}
